#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    label=new QLabel(this);
    label->setText("这是一个标签");
    label->setGeometry(50,50,200,80);
    label->setObjectName("label");
    line_edit=new QLineEdit(this);
    line_edit->setGeometry(50,150,200,50);
    line_edit->setObjectName("line_edit");
    button1=new QPushButton("按钮1",this);
    button1->setObjectName("button1");
    button1->setGeometry(50,300,200,50);
    button2=new QPushButton("按钮2",this);
    button2->setObjectName("button2");
    button2->setGeometry(50,400,200,50);
    button3=new QPushButton("按钮3",this);
    button3->setObjectName("button3");
    button3->setGeometry(50,500,200,50);
}

Widget::~Widget()
{
    delete ui;
}

